package com.yongchun.commons.enums;

/**
 * @author afeng
 * @version 1.0
 * @date 2023/2/28 下午5:37
 */
public enum RebateRecordTypeEnum {
    REBATE_ADD(1, "返利增加"),
    CASH(2, "提现"),
    DAY_SETTLE(3, "日结算"),
    DEVELOP_SUB_REWARD(4, "发展下级奖励"),
    ;

    private int type;
    private String desc;

    RebateRecordTypeEnum(int type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static String getRebateRecordTypeDesc(int type) {

        for (GameTypeEnum var : GameTypeEnum.values()) {
            if (type == var.getType())
                return var.getDesc();
        }
        return "返利增加";
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
